﻿using System;
using System.Collections.Generic;

namespace Database.ERPNext
{
    public partial class tabPricing_Rule
    {
        public string name { get; set; } = null!;
        public DateTime? creation { get; set; }
        public DateTime? modified { get; set; }
        public string? modified_by { get; set; }
        public string? owner { get; set; }
        public int docstatus { get; set; }
        public int idx { get; set; }
        public string? naming_series { get; set; }
        public string? title { get; set; }
        public int disable { get; set; }
        public string? apply_on { get; set; }
        public string? price_or_product_discount { get; set; }
        public string? warehouse { get; set; }
        public int mixed_conditions { get; set; }
        public int is_cumulative { get; set; }
        public int coupon_code_based { get; set; }
        public string? apply_rule_on_other { get; set; }
        public string? other_item_code { get; set; }
        public string? other_item_group { get; set; }
        public string? other_brand { get; set; }
        public int selling { get; set; }
        public int buying { get; set; }
        public string? applicable_for { get; set; }
        public string? customer { get; set; }
        public string? customer_group { get; set; }
        public string? territory { get; set; }
        public string? sales_partner { get; set; }
        public string? campaign { get; set; }
        public string? supplier { get; set; }
        public string? supplier_group { get; set; }
        public decimal min_qty { get; set; }
        public decimal max_qty { get; set; }
        public decimal min_amt { get; set; }
        public decimal max_amt { get; set; }
        public int same_item { get; set; }
        public string? free_item { get; set; }
        public decimal free_qty { get; set; }
        public decimal free_item_rate { get; set; }
        public string? free_item_uom { get; set; }
        public int round_free_qty { get; set; }
        public int is_recursive { get; set; }
        public decimal recurse_for { get; set; }
        public decimal apply_recursion_over { get; set; }
        public DateOnly? valid_from { get; set; }
        public DateOnly? valid_upto { get; set; }
        public string? company { get; set; }
        public string? currency { get; set; }
        public string? margin_type { get; set; }
        public decimal margin_rate_or_amount { get; set; }
        public string? rate_or_discount { get; set; }
        public string? apply_discount_on { get; set; }
        public decimal rate { get; set; }
        public decimal discount_amount { get; set; }
        public decimal discount_percentage { get; set; }
        public string? for_price_list { get; set; }
        public decimal threshold_percentage { get; set; }
        public string? priority { get; set; }
        public string? condition { get; set; }
        public int apply_multiple_pricing_rules { get; set; }
        public int apply_discount_on_rate { get; set; }
        public int validate_applied_rule { get; set; }
        public string? rule_description { get; set; }
        public string? promotional_scheme_id { get; set; }
        public string? promotional_scheme { get; set; }
        public string? _user_tags { get; set; }
        public string? _comments { get; set; }
        public string? _assign { get; set; }
        public string? _liked_by { get; set; }
    }
}
